﻿using Blazor.Diagrams.Core.Geometry;
using Blazor.Diagrams.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnWork.DataCenter.Shared.Pages.DataStandard.Designer
{
    public class PortDto
    {

        public PortAlignment Alignment { get; set; }

        public Point Position { get; set; }

        public Size Size { get; set; }
        public string Id { get; set; }
        //public double X { get; set; }
        //public double Y { get; set; }
        //public double Width { get; set; }
        //public double Height { get; set; }
        //public Guid DefinitionId { get; set; }
        public string ParentId { get; set; }
        public List<LinkDto>? Links { get; set; } = new List<LinkDto>(4);

        //public PortAlignments PortAlignments { get; set; }
    }

    public enum PortAlignments
    {
        Top,
        TopRight,
        Right,
        BottomRight,
        Bottom,
        BottomLeft,
        Left,
        TopLeft
    }
}
